package at.jaki.ubb.crawling.api;

import java.util.Collection;

import at.jaki.ubb.crawling.model.CEEntity;

/**
 * Crawling engine communicates with an underling database thought this
 * interface.
 * 
 * @author Attila Jakabfi
 * 
 */
public interface DbFacade {

	/**
	 * Saves an entity to the database
	 * 
	 * @param entity
	 */
	void persist(CEEntity entity);

	/**
	 * Saves a collection of entities to the database
	 * 
	 * @param coll
	 */
	void persistAll(Collection<CEEntity> coll);

}
